package cn.edu.gues.infosystam.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 苏小小
 * @since 2020-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Teacher对象", description="")
public class Teacher implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "#")
    @TableId(value = "tid", type = IdType.AUTO)
    private Integer tid;

    @ApiModelProperty(value = "教师工号")
    private Integer tno;

    @ApiModelProperty(value = "权限（0普通教师，1管理员）")
    private Integer roles;

    @ApiModelProperty(value = "密码")
    private String tpassword;

    @ApiModelProperty(value = "教师姓名")
    private String tname;

    @ApiModelProperty(value = "教师手机号")
    private String tphone;

    @ApiModelProperty(value = "逻辑删除（0：未删除，1：删除）")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT )
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
